package cn.com.open.itembank.service;

import cn.com.open.itembank.entity.QuestionCategory;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * Created by lucky on 2017/12/14.
 */
@FeignClient(name = "item-base-service")
public interface QuestionCategoryRemoteService {

    /**
     * 获取可用试题应用类别名称信息
     *
     * @param name 试题应用类别名称
     * @return the list
     */
    @GetMapping("/questioncategory/enabledlist")
    List<QuestionCategory> getEnabledList(@RequestParam(value = "name") String name);
}